package com.SpringBoot.orderDetail.mapper;

import com.SpringBoot.orderDetail.pojo.OrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bxk
 * @since 2025-09-15
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    int addOrderDetail(OrderDetail orderDetail);

    int deleteOrderDetail(@Param("detailId") Integer detailId);

    Integer getOrderDetailCount();

    BigDecimal completionRate();
}
